package com.joe.learn.client;

import com.joe.learn.api.MsgServerApi;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class MsgReqClient {

    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(
                new String[]{"classpath:/spring/dubbo-client-spring-c.xml"});
        context.start();
        MsgServerApi msgReqApi = (MsgServerApi) context.getBean("msgServerApi");
        msgReqApi.sendMsg("client sent msg.");
    }
}
